package com.maolong.service.impl;

import com.maolong.dao.OrderMapper;
import com.maolong.entity.domain.Order;
import com.maolong.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;
    @Override
    public List getOrder(Long userId) {
        return orderMapper.getOrderByUserId(userId);
    }
}
